package org.putrpctorest.resource;

import javax.ws.rs.CookieParam;
import javax.ws.rs.FormParam;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.MatrixParam;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;

import org.springframework.web.bind.annotation.RequestBody;

public enum ParameterType {

	PATH(PathParam.class), QUERY(QueryParam.class), MATRIX(MatrixParam.class), HEADER(
			HeaderParam.class), COOKIE(CookieParam.class), FORM(FormParam.class), REQUEST_BODY(
			RequestBody.class), CONTEXT(Context.class);

	private Class<?> parameterAnnotation;

	ParameterType(Class<?> parameterAnnotation) {
		this.parameterAnnotation = parameterAnnotation;
	}

	public Class<?> getParameterAnnotation() {
		return parameterAnnotation;
	}

}
